selenium exception handling python

33

selenium exception handling python -

from selenium.common.exceptions import NoSuchElementException

try:
    driver.find_element_by_xpath("//span")
except NoSuchElementException:

Comments

Submit
0 Comments